/**
 * Created by jianglinjie on Thu Sep 28 2017
 * @flow
 */
'use strict';

import mongoose from 'mongoose';
const Schema = mongoose.Schema;

const invalidTokenSchema = new Schema({
  token: {
    type: String,
    required: true,
    unique: true
  },
  expireAt: {
    type: Date,
    expires: 0
  }
});

export default mongoose.model('InvalidToken', invalidTokenSchema);
